package com.wb.mas.ui.help;

import android.graphics.Color;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.wb.mas.R;
import com.wb.mas.entity.HelpEntity;
import com.wb.mas.entity.OrderEntity;
import com.wb.mas.ui.order.OrderViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.utils.ToastUtils;

/**
 * Copyright (C) 2018
 * OrderItemViewModel
 * <p>
 * Description
 *
 * @author Administrator
 * @version 1.0
 * <p>
 * Ver 1.0, 2019/4/30 0030, Administrator, Create file
 */
public class HelpItemViewModel extends ItemViewModel<HelpViewModel> {

    public ObservableField<HelpEntity> entity = new ObservableField<>();


    public HelpItemViewModel(@NonNull HelpViewModel viewModel, HelpEntity orderEntity) {
        super(viewModel);
        entity.set(orderEntity);
    }
    
    public String getString(int resId) {
        return viewModel.getString(resId);
    }
}
